// JavaScript Document

window.onload=function(){
	jddhShow(); //导航栏下拉信息
	head_show();	
} 

function saveInfo(){
	var yjbti=$.trim($("#yjbti").val());
	var yjcontent=ue.getContent();
	
		$.ajaxFileUpload({		
			url:"yjInfoServlet?op=saveyjInfo",
			secureuri:false,
			fileElementId:"uploadPhoto",
			dataType:"json",
			data:{"yjbti":yjbti,"yjcontent":yjcontent},
			success:function(data,status){
				data=parseInt($.trim(data));
				if(data==1){
					alert("游记添加成功");
					window.location.href="travel_note.html"
				}else{
					alert("游记添加失败");
				}
			}
		});
	
	
	
}